const DBUtil=require("../utils/DBUtil");
class Exam_infoService{
  //获取所有考试信息
  getAllList(){
    return new Promise((resolve,reject)=>{
        var conn=DBUtil.getConn();
        conn.query("select * from exam_info where isDel=false ",[],(err,result)=>{
          if(err){
            reject(err);
          }
          else{
            resolve(result);
          }
          conn.end();
        });
    });
  }
}

module.exports=Exam_infoService;